﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CommonLibrary
{
    public class MainFrame : Form
    {
        // 当前正在表示的窗口
        protected BaseView m_currentView = null;

        public BaseView CurrentView
        {
            get
            { 
                return m_currentView;
            }
        }

        /// <summary>
        /// 回到主窗口
        /// </summary>
        public virtual void OnBackToMainView()
        {
        }

         /// <summary>
        /// 加载用户控件
        /// </summary>
        /// <param name="targetType"></param>
        /// <returns></returns>
        public virtual BaseView LoadView(Type targetType)
        {
            return null;
        }
    }
}
